package cz.muni.fi.pv168.confusinglibrary.app;

import cz.muni.fi.pv168.confusinglibrary.app.gui.MainJFrame;
import java.io.IOException;
import java.util.Locale;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

/**
 *
 * @author Riema
 */
public class main {

    public static void main(String[] args) {
        Locale.setDefault(Locale.ENGLISH);
        Handler fh = null;
        try {
            fh = new FileHandler("confusinglibrary.log");
            fh.setFormatter(new SimpleFormatter());
            fh.setLevel(Level.FINE);
        } catch (IOException ex) {
            Logger.getLogger(main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SecurityException ex) {
            Logger.getLogger(main.class.getName()).log(Level.SEVERE, null, ex);
        }
        Logger.getLogger("").addHandler(fh);
        Logger.getLogger("").setLevel(Level.ALL);

        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainJFrame().setVisible(true);
            }
        });
    }
}
